package de.cachaca.lildancefreak.valerie;

import java.io.IOException;
import java.net.Socket;

public class ServerVerbindung {

	
	Socket clientSocket;
	
	public void connect()throws IOException{
		
	clientSocket = new Socket("http://swtv3.informatik.uni-mannheim.de/dav/",80);
	System.out.println(clientSocket.getLocalAddress());
	System.out.println(clientSocket.getPort());
	System.out.println("bereit...");
	
	}
	
	public void disconnect() throws IOException{
		clientSocket.close();
		System.out.println("connection closed");
	}
	
	public static void main(String[] args) throws IOException {
		ServerVerbindung test = new ServerVerbindung();
		test.connect();
		test.disconnect();
	}
	
}
